package com.test;

import com.tomcat.HttpServlet;
import com.tomcat.annotation.WebServlet;

import java.lang.annotation.Annotation;
@WebServlet("/user")
public class UserServlet implements HttpServlet {

    @Override
    public void doGet() {
        System.out.println("Get方法");
    }

    @Override
    public void doPost() {
        System.out.println("Post方法");
    }
}
